package com.poi.exp.domain;

import java.util.List;
import java.util.Map;

import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.util.CellRangeAddress;

import com.poi.util.JackJsonUtil;

/**
 * sheet包装类
 * 
 * @author tarena
 *
 */
public class SheetModelVO {

	private Sheet sheet;

	private List<RowModelVO> rowModelList;

	// 原有的合并单元格信息
	private Map<String, CellRangeAddress> originalAddreaaMap;
	// 新增需要合并单元格信息
	private Map<String, CellRangeAddress> needAddreaaMap;

	public SheetModelVO() {
		super();
	}

	public Sheet getSheet() {
		return sheet;
	}

	public void setSheet(Sheet sheet) {
		this.sheet = sheet;
	}

	public List<RowModelVO> getRowModelList() {
		return rowModelList;
	}

	public void setRowModelList(List<RowModelVO> rowModelList) {
		this.rowModelList = rowModelList;
	}

	public Map<String, CellRangeAddress> getOriginalAddreaaMap() {
		return originalAddreaaMap;
	}

	public void setOriginalAddreaaMap(Map<String, CellRangeAddress> originalAddreaaMap) {
		this.originalAddreaaMap = originalAddreaaMap;
	}

	public Map<String, CellRangeAddress> getNeedAddreaaMap() {
		return needAddreaaMap;
	}

	public void setNeedAddreaaMap(Map<String, CellRangeAddress> needAddreaaMap) {
		this.needAddreaaMap = needAddreaaMap;
	}

	@Override
	public String toString() {
		return JackJsonUtil.objToJson(this);
	}
}
